<%--
  Created by IntelliJ IDEA.
  User: 柳胜酉
  Date: 2023/4/21
  Time: 19:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>采购员页面</title>
    <link href="${pageContext.request.contextPath}/statics/style/css/Site.css" rel="stylesheet" type="text/css"/>
    <link href="${pageContext.request.contextPath}/statics/style/css/zy.layout.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/statics/style/css/zy.form.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/statics/style/css/index.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/statics/style/css/zy.menu.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/statics/style/css/zy.all.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/statics/style/css/amazeui.min.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/statics/style/css/admin.css" rel="stylesheet"/>
</head>
<script src="${pageContext.request.contextPath}/statics/scripts/jquery-3.6.1.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/statics/scripts/Jqueryplugs.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/statics/scripts/_layout.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        //1.隐藏所有的ul标签
        $(".ulleftsubitems").hide();
        //2.给一级菜单绑定click事件
        $(".limenuitem").click(function () {
            //3.收起已经展开的二次菜单
            $(".ulleftsubitems").slideUp(500);
            //4.打开点击的菜单
            $(this).children().slideDown(500);
        });
    })
</script>
<body>
<div class="dvheader">
    <div class="dvheadertools">
        <span class="headerspantitle">进销存管理系统</span>
        <ul class="headerultools">

            <li class="headerlitools_info headerlitools" style="background-color: #1E1E1E">
                <div class="headeruserface" style="text-align: center;"><i class="icon-user"
                                                                           style="color: black;font-size: 19px;"></i>
                </div>
                <i style="margin-left: 8px;" class="icon-caret-down"><%=session.getAttribute("user_name") %>
                    (<% int role = Integer.parseInt(session.getAttribute("role").toString());
                        if (role == 0 || role == 1 || role == 2) {
                            if (role == 0) {
                                out.write("管理员");
                            } else if (role == 1) {
                                out.write("采购员");
                            } else {
                                out.write("销售员");
                            }
                        } else {
                            out.write("未知角色");
                        }
                    %>)</i>
            </li>
            <li id="logout">
                <a style="color: #F2F2F2; text-decoration: none;" href="${pageContext.request.contextPath}/clearSession">退出</a>
            </li>
        </ul>
    </div>
</div>


<div class="dvcontent">
    <div class="panel">
        <ul class="ulleftmenu" style="border-right: 1px solid #ddd;">

            <li class="limenuitem">
                <i class="icon-cog menuicon"></i>采购管理<b class="arrow icon-angle-down arrow-down"></b>
                <ul class="ulleftsubitems">
                    <li><a href="${pageContext.request.contextPath}/doPurchaseRecord" target="right">
                        商品采购记录
                    </a></li>
                    <li><a href="${pageContext.request.contextPath}/doListOfInventoryAdd" target="right">
                        商品采购
                    </a></li>
                </ul>
            </li>

        </ul>

    </div>

    <div style="position: absolute; left: 180px; right: 10px;">
        <iframe src="${pageContext.request.contextPath}/doListOfInventoryAdd" scrolling="auto" width="100%" height="800" name="right" border="none"></iframe>
    </div>
    <div class="copyrights" id="copyrights">
        &copy; 2023 madballpad All rights reserved.
        <a href="tencent://Message/?Uin=842294358&websiteName=www.oicqzone.com&Menu=yes" title="版权信息">
            联系管理员</a>
    </div>

</div>
</body>
</html>
